maximum revenue equation